# conding = utf-8
from selenium.webdriver.common.by import By
# 菜单模块
left_menu_management_vendor = By.XPATH, "//li/div/span/span[text()='基本资料']"
left_menu_sales_vendor = By.XPATH, "//li/a[@target='结算账户']"
# 查询供应商名称
find_order_name = By.XPATH,"//div/div[1]/div/div[2]/div/span/input"
find_expected_name = By.XPATH, "//tbody[@class='ant-table-tbody']/tr[1]/td[4]"
# 查询供应商号码
find_order_number = By.XPATH,"//div/div[2]/div/div[2]/div/span/input"
# 查询供应商电话
find_order_phone = By.XPATH,"//div/div[3]/div/div[2]/div/span/input"
# 重置
find_bnt_order_reset = By.CSS_SELECTOR, ".table-page-search-submitButtons>div>button:nth-child(2)"
# 查询按钮
find_btn = By.CSS_SELECTOR, ".table-page-search-submitButtons>div>button:nth-child(1)"
# 查询暂无数据
find_no_data_yet = By.CSS_SELECTOR, ".ant-empty-description"

# 新增按钮
insert_order = By.CSS_SELECTOR, ".table-operator>button:nth-child(1)"
# 名称输入框
insert_name = By.XPATH, "//div[@class='ant-card-body']/div[4]/div/div/div[2]/div/div[2]/div[2]/div/div/form/div/div[2]/div/span/input"
# 失败文本
insert_name_fail = By.XPATH, "//div[@class='ant-card-body']/div[4]/div/div/div[2]/div/div[2]/div[2]/div/div/form/div/div[2]/div/div"
# 确定按钮
insert_order_sure = By.XPATH, "//div[@class='ant-modal-footer']/div/button[2]"
# 关闭按钮
insert_order_close = By.XPATH, "//div[@class='ant-modal-content']/button"

# 编辑按钮
update_order = By.CSS_SELECTOR, ".ant-table-tbody>tr>td:nth-child(3)>span>a:nth-child(3)"
# 编辑客户表格文本
update_order_customer = By.CSS_SELECTOR, ".ant-table-tbody>tr>td:nth-child(4)"

# 批量操作
# 复选框
batch_checkbox = By.XPATH, "//tbody[@class='ant-table-tbody']/tr[1]/td[1]/span/label/span"
# 批量操作悬浮
batch_operation = By.XPATH, "//div[@class='ant-card-body']/div[2]/button[2]/span[text()='批量操作']"
# 禁用
batch_operation_opposite_audit = By.XPATH, "//ul[@role='menu']/li[3][text()='禁用']"
# 启用
batch_operation_audit = By.XPATH, "//ul[@role='menu']/li[2][text()='启用']"
# 获取表格订单状态
batch_operation_state = By.XPATH, "//tbody[@class='ant-table-tbody']/tr[1]/td[10]/span"
# 审核确定按钮
batch_operation_audit_sure = By.XPATH, "//div[@class='ant-modal-body']/div/div[2]/button[2]"

# 设为默认
default_bnt = By.CSS_SELECTOR, ".ant-table-tbody>tr>td:nth-child(3)>span>a:nth-child(1)"
# 默认状态
default_status_txt = By.CSS_SELECTOR, ".ant-table-tbody>tr>td:nth-child(11)>span"

# 删除按钮
# 删除按钮
delete_order_one = By.CSS_SELECTOR, ".ant-table-tbody>tr>td:nth-child(3)>span>a:nth-child(5)"
delete_order_two = By.CSS_SELECTOR, ".ant-table-tbody>tr:nth-child(3)>td:nth-child(3)>span>a:nth-child(5)"
# 单击确定
delete_order_sure_bnt = By.XPATH, "//div[@class='ant-popover ant-popover-placement-top' and not(contains(@style,'display'))]//span[contains(text(),'确 定')]"
# 获取弹出框
delete_order_txt = By.CSS_SELECTOR, ".ant-message-notice-content>div>span"